
package org.springxrsk.modules.signup.wrapper;

import org.springxrsk.core.mp.support.BaseEntityWrapper;
import org.springxrsk.core.tool.utils.BeanUtil;
import org.springxrsk.modules.signup.pojo.entity.QyCardTypesEntity;
import org.springxrsk.modules.signup.pojo.vo.QyCardTypesVO;
import java.util.Objects;

/**
 * 课卡类型 包装类,返回视图层所需的字段
 *
 *  @author
 * @since 2024-06-19
 */
public class QyCardTypesWrapper extends BaseEntityWrapper<QyCardTypesEntity, QyCardTypesVO>  {

	public static QyCardTypesWrapper build() {
		return new QyCardTypesWrapper();
 	}

	@Override
	public QyCardTypesVO entityVO(QyCardTypesEntity qyCardTypes) {
		QyCardTypesVO qyCardTypesVO = Objects.requireNonNull(BeanUtil.copyProperties(qyCardTypes, QyCardTypesVO.class));

		//User createUser = UserCache.getUser(qyCardTypes.getCreateUser());
		//User updateUser = UserCache.getUser(qyCardTypes.getUpdateUser());
		//qyCardTypesVO.setCreateUserName(createUser.getName());
		//qyCardTypesVO.setUpdateUserName(updateUser.getName());

		return qyCardTypesVO;
	}


}
